<?php


namespace App\Models;


use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Work
 *
 * @property int $id
 * @property int $user_id 用户 ID
 * @property int $amount 资料量
 * @property int $effect_mobile 有效电话量
 * @property int $intention 意向客户量
 * @property int $visit 拜访量
 * @property int $order 成单量
 * @property int $wechat 微信量
 * @property string $remark 备注
 * @property Carbon $day
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|Work newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Work newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Work query()
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereEffectMobile($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereIntention($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereOrder($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereVisit($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Work whereWechat($value)
 * @mixin \Eloquent
 */
class Work extends Model
{

    protected $table = 'work';

    protected $fillable = ['user_id', 'amount', 'effect_mobile', 'intention', 'visit', 'order', 'wechat', 'remark', 'day'];

    protected $casts = [
        'day' => 'datetime'
    ];

}
